import React from 'react';
class VoteMain extends React.Component {
	render() {
		const { store } = this.props,
			{ supNum, oppNum } = store.getState().vote;
		return <main>
			<p>支持人数：{supNum}</p>
			<p>反对人数：{oppNum}</p>
		</main>;
	}
	componentDidMount() {
		this.props.store.subscribe(() => {
			this.forceUpdate();
		});
	}
}
export default VoteMain;